package com.skysee.skysee;

import com.jfinal.config.*;
import com.jfinal.core.JFinal;

import java.io.IOException;

public class CodeConfig extends JFinalConfig {

    @Override
    public void configConstant(Constants me) {

    }

    @Override
    public void configRoute(Routes me) {
        me.add("/", IndexController.class);
    }

    @Override
    public void configPlugin(Plugins me) {
    }

    @Override
    public void configInterceptor(Interceptors me) {
    }

    @Override
    public void configHandler(Handlers me) {
    }

    public static void main(String[] args) throws IOException {
        JFinal.start("WebContent", 8080, "/", 5);
    }

    @Override
    public void afterJFinalStart() {
        System.out.println("start successfully");
    }
}
